const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    host: "127.0.0.1",
    port: 8080,
    proxy: {
      "/wy": {
        target: "https://m.you.163.com", //获取数据那台服务器地址
        pathRewrite: { "^/wy": "" },
        // pathRewrite: { '^/api': '' },//路径重写要不要书写 ,真实接口地址/api,不需要重写
      },

      "/api": {
        target: "http://sph-h5-api.atguigu.cn", //获取数据那台服务器地址
        //路径重写要不要书写 ,真实接口地址/api,不需要重写
      },
    },
  },
});
